package com.changgou.seckill.feign;

import com.changgou.entity.Result;
import com.changgou.seckill.pojo.SeckillGoods;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

/**
 * @author kfzhao
 * @version 1.0
 * @interfaceName SeckillGoodsFeign
 * @description
 * @date 2022/1/6 2:40
 **/
@FeignClient(name = "seckill")
public interface SeckillGoodsFeign {

    @GetMapping("/seckillgoods/list")
    public Result<List<SeckillGoods>> list(@RequestParam("time") String time);
}
